package cn.dust.design.pattern.creational.builder;

/**
 * @Author: dust
 * @Date: 2019/11/25 17:00
 */
public class FPXBoss {
    private HeroBuilder heroBuilder;

    public HeroBuilder getHeroBuilder() {
        return heroBuilder;
    }

    public void setHeroBuilder(HeroBuilder heroBuilder) {
        this.heroBuilder = heroBuilder;
    }

    public Hero makeHero(String heroName,String heroQ,String heroW,String heroE,String heroR){
        this.heroBuilder.buildHeroName(heroName);
        this.heroBuilder.buildHeroQ(heroQ);
        this.heroBuilder.buildHeroW(heroW);
        this.heroBuilder.buildHeroE(heroE);
        this.heroBuilder.buildHeroR(heroR);
        return this.heroBuilder.makeHero();
    }

}
